<%@ page import="projectmanagerapp.Risk" %>



<div class="fieldcontain ${hasErrors(bean: riskInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="risk.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${riskInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: riskInstance, field: 'priority', 'error')} required">
	<label for="priority">
		<g:message code="risk.priority.label" default="Priority" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="priority" from="${riskInstance.constraints.priority.inList}" required="" value="${riskInstance?.priority}" valueMessagePrefix="risk.priority"/>
</div>

<div class="fieldcontain ${hasErrors(bean: riskInstance, field: 'status', 'error')} required">
	<label for="status">
		<g:message code="risk.status.label" default="Status" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="status" from="${riskInstance.constraints.status.inList}" required="" value="${riskInstance?.status}" valueMessagePrefix="risk.status"/>
</div>

<div class="fieldcontain ${hasErrors(bean: riskInstance, field: 'project', 'error')} required">
	<label for="project">
		<g:message code="risk.project.label" default="Project" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="project" name="project.id" from="${projectmanagerapp.Project.list()}" optionKey="id" required="" value="${riskInstance?.project?.id}" class="many-to-one"/>
</div>

